<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Associate an Idea to a Plan</title>
</head>
<body>

<form id ="myform" action="@{Plans.addIdea()}" method="POST">
Idea <select size="1" name="ideaID"> 
            #{list items:ideas, as:'Idea'}
                <option value="${Idea.id}">${Idea.title}</option>
            #{/list}
            </select> <br> <br>

Plan <select size="1" name="planID"> 
            #{list items:plans, as:'Plan'}
                <option value="${Plan.id}">${Plan.name}</option>
            #{/list}
            </select> <br> <br>
<input type = "submit" value = "Submit" name = "Submit"/>            
</form>

<p style="color:blue">
        ${result}
</p>

</body>
</html>